 /**
 * Created by Administrator on 2017/11/6 */

 function save(){
     var obj = getFormData();
     if(getstrlength(obj.lAccountRegisterNumber)==0){
         alert("注册登记号码不能为空，请输入！！");
         $("#lAccountRegisterNumber").css("border-color","red");
         return;
     }
     if(getstrlength(obj.lBusinessLicenserNumber)==0){
         alert("营业执照号码不能为空，请输入！！");
         $("#lBusinessLicenserNumber").css("border-color","red");
         return;
     }
     if(getstrlength(obj.lName)==0){
         alert("法人姓名不能为空，请输入！！");
         $("#lName").css("border-color","red");
         return;
     }
     if(getstrlength(obj.lIdNumber)==0){
         alert("法人身份证号不能为空，请输入！！");
         $("#lIdNumber").css("border-color","red");
         return;
     }else if(!is18IDCard(obj.lIdNumber)){
         alert("请输入合法的身份证！");
         $("#lIdNumber").css("border-color","red");
     }
     if(getstrlength(obj.lPhoneNumber)==0){
         alert("法人联系电话不能为空，请输入！！");
         $("#lPhoneNumber").css("border-color","red");
         return;
     }else if(!isTel(obj.lPhoneNumber)){
         alert("请输入合法的联系电话！！");
         $("#lPhoneNumber").css("border-color","red");
         return;
     }
     if(getstrlength(obj.lContactAddress)==0){
         alert("法人联系地址不能为空，请输入！！");
         $("#lContactAddress").css("border-color","red");
         return;
     }
     if(getstrlength(obj.authorizerName)==0){
         alert("授权人姓名不能为空，请输入！！");
         $("#authorizerName").css("border-color","red");
         return;
     }
     if(getstrlength(obj.authorizerIdNumber)==0){
         alert("授权人身份证号不能为空，请输入！！");
         $("#authorizerIdNumber").css("border-color","red");
         return;
     }else if(!is18IDCard(obj.authorizerIdNumber)){
         alert("授权人身份账号不合法，请重新输入！！");
         $("#authorizerIdNumber").css("border-color","red");
         return;
     }
     if(getstrlength(obj.authorizerPhoneNumber)==0){
         alert("法人联系电话不能为空，请输入！！");
         $("#authorizerPhoneNumber").css("border-color","red");
         return;
     }else if(!isTel(obj.authorizerPhoneNumber)){
         alert("请输入合法的联系电话！！");
         $("#authorizerPhoneNumber").css("border-color","red");
         return;
     }

 }

